package com.zc.study.thread.多线程第四章节.thread4_1_7;

public class ThreadB extends Thread{
    private Service service;

    public ThreadB(Service service) {
        this.service = service;
    }

    @Override
    public void run() {
        super.run();
        while(true){
            service.b();
        }
    }
}
